package com.zzptc.sky.bdsjws.activites;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.zzptc.sky.bdsjws.R;
import com.zzptc.sky.bdsjws.activites.base.BaseActivity;
import com.zzptc.sky.bdsjws.fragments.ShowAllContactFragment;
import com.zzptc.sky.bdsjws.utils.MyUtil;
import com.zzptc.sky.bdsjws.vo.Contacts;

import java.util.List;

public class Sos_Lxr extends BaseActivity {
ImageView imageView;
    ShowAllContactFragment showAllContactFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public int getContentView() {
        return R.layout.activity_sos__lxr;
    }

    @Override
    public void initData() {

        //在Fragment中绑定数据源    由内容提供者  查询  联系人信息  UEI：ContactsContract.Contacts.CONTENT_URI
     // List<Contacts>  listContact=MyUtil.getAllContacts();
        //绑定RecycleView
        //用fragment来替换Framelayout

        if(showAllContactFragment==null){
         showAllContactFragment=new ShowAllContactFragment();

        }
        getFragmentManager().beginTransaction().replace(R.id.fl_show_contact,showAllContactFragment).addToBackStack("contact").commit();
    }

    @Override
    public void initView() {

    }
    public void lxr_htan(View view){
        startActivity(new Intent(this,OneKeySosActivity.class));
    }

}
